package com.mashiro.quartz.domain;

import com.mashiro.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 预警信息实体
 *
 * @author mashiro
 */
public class WarnInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String email;
    private Long projectId;
    private String projectName;
    private Integer diffTime;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getDiffTime() {
        return diffTime;
    }

    public void setDiffTime(Integer diffTime) {
        this.diffTime = diffTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("email", getEmail())
                .append("projectId", getProjectId())
                .append("projectName", getProjectName())
                .append("diffTime", getDiffTime())
                .toString();
    }
}
